<div id="generic_fields">
<?php
echo $html->link('Return to events page', '/events');

echo $form->create('Person', array('action' => 'manage')); 

echo $form->input('Person.first_name', array('value' => $person['Person']['first_name']));
echo $form->input('Person.last_name', array('value' => $person['Person']['last_name']));
echo $form->input('Person.username', array('label' => 'E-Mail Address', 'value' => $person['Person']['username']));
echo $form->input('Person.id', array('type' => 'hidden', 'value' => $person['Person']['id']));
?>
<div>
<p>
<a id="togglePassword" >Change Password</a>
<br />
</p>
</div>
<script>
	$j("#togglePassword").click(function () {
		$j("#togglePassword").hide();
		$j("#changePassword").slideToggle("slow");
		return false;
	});
</script>

<div id="changePassword" style="display:none;" >
<?php
echo $form->input('password_old', array('type' => 'password', 'label' => 'Old Password'));
echo $form->input('password_confirm', array('type' => 'password', 'label' => 'New Password'));
echo $form->input('password', array('type' => 'password', 'label' => 'Password Confirm'));
?>
</div>

<?php
echo $form->submit('Save Changes');
echo $form->end();
?>
</div>